<p>news works!</p>

<button (click)="getData()">get请求数据</button>
<br>
<br>
<button (click)="doLogin()">post请求数据</button>
<hr>
<br>
<br>
<button (click)="getJsonp()">通过Jsonp获取服务器数据 跨域的一种解决方案</button>
<br>
<button (click)="getAxiosData()">通过第三方模块axios获取服务器数据</button>
<br>
<ul>
  <li *ngFor="let item of list">
    {{item.title}}
  </li>
</ul>
